package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberLegalRuleAction;
import com.jic.member.response.power.MememberLegalRuleResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员等级管理-权益规则-购物-积分-活动-服务-内容-等级升级表
 * @author : 
 * @email : 
 * @since : 2020-04-02 07:50:25
 * @version : v1.0.0
 */
@Mapper
public interface  MememberLegalRuleActionMapper {

    long insert(MememberLegalRuleAction mememberLegalRuleAction);

    long delete(Long id);

    long update(MememberLegalRuleAction mememberLegalRuleAction);

    MememberLegalRuleAction queryByPrimaryKey(Long id);

    List<MememberLegalRuleAction> query(MememberLegalRuleAction mememberLegalRuleAction);

    List<MememberLegalRuleAction> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberLegalRuleAction") MememberLegalRuleAction mememberLegalRuleAction);

    long queryPageCount(MememberLegalRuleAction mememberLegalRuleAction);

    MememberLegalRuleResponse queryInfoByLegalRuleType(@Param("legalRuleId")Long legalRuleId , @Param("legalRuleType")Integer legalRuleType);

    long deleteByLegalRuleId(Long legalRuleId);
}